Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iterate through pages in VSAC API #274

Merged
merged 2 commits into from
Jul 31, 2024
Merged

Iterate through pages in VSAC API #274

merged 2 commits into from
Jul 31, 2024

Conversation

dogversioning
Copy link
Contributor

This PR makes the VSAC API support the pagination paramter for the expand operation.

Checklist

  • Consider if documentation (like in docs/) needs to be updated
  • Consider if tests should be added
  • Update template repo if there are changes to study configuration

Copy link

github-actions bot commented Jul 31, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
1993 1967 99% 90% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
cumulus_library/apis/umls.py 100% 🟢
TOTAL 100% 🟢

updated for commit: e7bdf73 by action🐍

cumulus_library/apis/umls.py Outdated Show resolved Hide resolved
Comment on lines 107 to 112
# Do we need to fetch the next page?
# Note: the VSAC API hard codes the page size to 1000
# and ignores the count param in the FHIR API
# (https://www.hl7.org/fhir/ValueSet-operation-expand.html),
# so we just hardcode an expansion of 1000 and hope it
# doesn't chage
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool

cumulus_library/apis/umls.py Show resolved Hide resolved
@dogversioning dogversioning merged commit e6dab8b into main Jul 31, 2024
3 checks passed
@dogversioning dogversioning deleted the mg/page_vsac branch July 31, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants